
class CommUnit:

    def is_contain(self,str_one,str_two):

        flag = None

        str_one =str_one.replace("\n",'').strip()

        str_two = str_two.replace("\n",'').strip()

        if str_one in str_two:
            flag = True

        else:
            flag = False

        return flag
if __name__ == '__main__':
    str1 = "password"
    str2='{"password": "123456","username": "wangyu"}'
    test = CommUnit()
    test.is_contain(str1,str2)